//
// Created by dxyinme on 2021/11/6.
//

#include "FPStyle/condition.h"
#include <iostream>

using namespace FPStyle;

int Task(int o) {
  int res = 0;
  if (0 <= o && o <= 10) {
    res = 1;
  } else if (12 <= o && o <= 17) {
    res = 2;
  } else if (23 <= o) {
    res = 3;
  }
  return res;
}

int FpTask(int o) {
  int res = 0;
  IfElse(And(0 <= o, o <= 10), [&] {
    res = 1;
  }, [&] {
    IfElse(And(0 <= o, o <= 17), [&] {
      res = 2;
    }, [&] {
      If(23 <= o, [&] {
        res = 3;
      });
    });
  });
  return res;
}

int main(int argc, char ** argv) {
  std::cout << Task(16) << "\n";
  std::cout << FpTask(16) << "\n";
}

